package com.csj.DesignPattern.command;

public class Client {
    public static void main(String[] args) {
        Order order1 = new Order();
        order1.setDinningTable(1);
        order1.setFood("面", 1);
        order1.setFood("可乐", 2);

        Order order2 = new Order();
        order2.setDinningTable(2);
        order2.setFood("饼", 3);
        order2.setFood("雪碧", 1);

        SeniorChef receiver = new SeniorChef();
        OrderCommand command1 = new OrderCommand(receiver, order1);
        OrderCommand command2 = new OrderCommand(receiver, order1);

        Waitor waitor = new Waitor();
        waitor.setCommand(command1);
        waitor.setCommand(command2);

        waitor.orderUp();
    }
}
